package com.core.system.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pojo.entity.ImMessageRecordEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.req.im.ImRecordDto;
import com.pojo.req.im.ImRecordResp;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 用户消息记录 Mapper 接口
 * </p>
 *
 * @author hewei
 * @since 2023-10-21
 */
@Mapper
public interface ImMessageRecordMapper extends BaseMapper<ImMessageRecordEntity> {

    Page<ImRecordResp> selectImRecord(IPage<ImRecordResp> iPage,ImRecordDto imRecordDto);

    List<ImRecordResp> selectImRecordList(ImRecordDto imRecordDto,Integer limit);
}
